<%--/*
- * @description: 用户下单页
- * @author: huangchuting
- * @update: huangchuting (2021/1/8 15:51)
- */--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>校园租赁-用户下单</title>
</head>
<link rel="stylesheet" href="/static/css/addOrder.css">
<body>
    <c:import url="../public/head.jsp"></c:import>
    <script>
        shop.innerHTML = '<span style="color: red">·&#12288;用户下单页</span>'
    </script>
    <div class="divWarp">
        <div class="contentWarp">
            <form class="orderForm" method="post" action="/Order/addOrder">
                <input type="hidden" name="item_id" value="${itemInfo.item_id}">
                <input type="hidden" name="item_name" value="${itemInfo.item_name}">
                <input type="hidden" name="order_price" value="${itemInfo.price}">
                <table>
                    <tr>
                        <td><span>商品名字：</span></td>
                        <td><span>${itemInfo.item_name}</span></td>
                    </tr>
                    <tr>
                        <td><span>商品价格：</span></td>
                        <td><span>${itemInfo.price}</span></td>
                    </tr>
                    <tr>
                        <td><span>收货人：</span></td>
                        <td><input type="text" name="consignee" placeholder="请输入收货人名字" /></td>
                    </tr>
                    <tr>
                        <td><span>地址：</span></td>
                        <td><textarea name="addr" placeholder="请输入详细地址"></textarea></td>
                    </tr>
                    <tr>
                        <td><span>联系方式：</span></td>
                        <td><input type="text" name="contact_way" placeholder="请输入电话号码"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <button  class="orderBtn" type="submit">确认提交订单</button>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</body>
</html>
